//
//  ViewController.m
//  UI06_UIScrollView_UIPageControl
//
//  Created by dllo on 16/6/13.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "ViewController.h"
#import "PictureView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatPictureView];
    
}

-(void)creatPictureView{
    PictureView *pictureView = [[PictureView alloc] initWithFrame:CGRectMake(100, 100, 200, 300)];
    pictureView.center = self.view.center;
    [self.view addSubview:pictureView];
    [pictureView release];
    /** 创建图片数组 */
    UIImage *image1 = [UIImage imageNamed:@"dog_1.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"dog_2.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"dog_3.jpg"];
    UIImage *image4 = [UIImage imageNamed:@"dog_4.jpg"];
    
    pictureView.imageArray = @[image1,image2,image3,image4];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
